<template>
  <div>
    <h1>jack</h1>
  </div>
</template>

<script>
import PubSub from "pubsub-js";
import eventBus from "../../utils/eventBus";
export default {
  name: "",
  props: [""],
  data() {
    return {};
  },

  components: {},

  computed: {},

  beforeMount() {},

  mounted() {
    eventBus.$on("giveMsg", msg => {
      console.log(msg);
    });
    //订阅消息
    PubSub.subscribe("givetianqi", (msg, test) => {
      console.log(test);
    });
  },

  methods: {},

  watch: {}
};
</script>
<style lang="" scoped></style>
